<template>
   <div class="w-full">
     <el-form :inline="true" :model="dataForm" class="demo-form-inline">
       <el-form-item label="组织机构IdKey">
         <el-input @input="inputOrgHandler" v-model="dataForm.orgVariable" placeholder="请输入组织机构IdKey" />
       </el-form-item>
     </el-form>
   </div>
</template>

<script setup lang="ts">
import {reactive} from "vue";
const emit = defineEmits(['setCustomOrg'])
const dataForm = reactive({
   orgVariable: ''
})
const inputOrgHandler = (value) => {
  emit("setCustomOrg",value)
}
/**
 * 设置组织变量key
 */
const setOrgKey = (value) => {
  dataForm.orgVariable = value

}
defineExpose({setOrgKey })
</script>

<style scoped>

</style>